<?xml version="1.0" encoding="UTF-8"?>

<xsl:transform version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:pressless="http://www.pressless-is-priceless.org/"
  xmlns:addon="http://www.pressless-is-priceless.org/addon"
  xmlns:xhtml1="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
  >

  <xsl:template match="xhtml1:pre[ @pressless:code-language ]">
    <pre>
      <xsl:copy-of select="php:geshi_highlight(.)/*" />
    </pre>
  </xsl:template>

  <xsl:template match="xhtml1:head" mode="append-geshi">
    <link rel="stylesheet" type="text/css" href="/addons/geshi/style.css" />
  </xsl:template>
</xsl:transform>
